package com.xx.springboot.service.impl;

import com.xx.springboot.entity.Role;
import com.xx.springboot.mapper.RoleMapper;
import com.xx.springboot.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaoxiunique
 * @since 2018-11-03
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role getRoleListPermission(Long roleId) {
        return roleMapper.getRoleListPermission(roleId);
    }
}
